package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.Role;
import com.example.demo.entity.UserRole;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * @author moguai
 * @version 1.0
 * @date 2022/3/18 19:57
 */
@Service
public interface UserRoleService extends IService<UserRole> {
//    List<User_Role> SelectUser_Role(Integer user_id);
    void InsertUser_Role(Integer user_id,Integer role_id);
    void DeleteUser_Role(Integer user_id,Integer role_id);
    void DeleteUser_RoleByUser(Integer user_id);
    void DeleteUser_RoleByRole(Integer role_id);
    List<UserRole> SelectUser_RoleByUser(Integer user_id);
    List<UserRole> SelectUser_RoleByRole(Integer role_id);
    List<Role> SelectRoleByUser(Integer user_id);
}
